package org.budo.cmbc.direct.sdk.entity;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author lmw
 */
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Data
public class MEPreCloseAccountResponse extends AbstractCmbcDirectResponse {
    private static final long serialVersionUID = -5377388535696640959L;

    /**
     * 预销户状态
     */
    private String status;

    public MEPreCloseAccountResponse(String channelJnlNo, String responseJson) {
        super(channelJnlNo, responseJson);

        JSONObject json = JSON.parseObject(responseJson);
        this.status = json.getString("Status");
    }
}